#include <stdio.h>
int main(void)
{
    int num, n1, n2;
    printf("Enter a two-digit number: ");
    scanf("%d", &num);
    n1 = num / 10;
    n2 = num % 10;
    switch (n1) {
    case 0:
        switch (n2) {
            case 0: printf("You entered the number zero\n"); return 0;
            case 1: printf("You entered the number one\n"); return 0;
            case 2: printf("You entered the number two\n"); return 0;
            case 3: printf("You entered the number three\n"); return 0;
            case 4: printf("You entered the number fore\n"); return 0;
            case 5: printf("You entered the number five\n"); return 0;
            case 6: printf("You entered the number six\n"); return 0;
            case 7: printf("You entered the number seven\n"); return 0;
            case 8: printf("You entered the number eight\n"); return 0;
            case 9: printf("You entered the number nine\n"); return 0;
        }
    case 1: 
        switch (n2) {
            case 0: printf("You entered the number ten\n"); return 0;
            case 1: printf("You entered the number eleven\n"); return 0;
            case 2: printf("You entered the number twelve\n"); return 0;
            case 3: printf("You entered the number thirteen\n"); return 0;
            case 4: printf("You entered the number forteen\n"); return 0;
            case 5: printf("You entered the number fifteen\n"); return 0;
            case 6: printf("You entered the number sixteen\n"); return 0;
            case 7: printf("You entered the number seventeen\n"); return 0;
            case 8: printf("You entered the number eighteen\n"); return 0;
            case 9: printf("You entered the number ninteen\n"); return 0;
        }
    case 2: printf("You entered the number twenty"); break;
    case 3: printf("You entered the number thirty"); break;
    case 4: printf("You entered the number forty"); break;
    case 5: printf("You entered the number fifty"); break;
    case 6: printf("You entered the number sixty"); break;
    case 7: printf("You entered the number seventy"); break;
    case 8: printf("You entered the number eighty"); break;
    case 9: printf("You entered the number ninty"); break;
    }
    switch (n2) {
        case 0: printf("\n"); break;
        case 1: printf("-one\n"); break;
        case 2: printf("-two\n"); break;
        case 3: printf("-three\n"); break;
        case 4: printf("-four\n"); break;
        case 5: printf("-five\n"); break;
        case 6: printf("-six\n"); break;
        case 7: printf("-seven\n"); break;
        case 8: printf("-eight\n"); break;
        case 9: printf("-nine\n"); break;
    }
    return 0;
}